#include <iostream>
#include <unistd.h>

#include "ShareMemory.hpp"


int main(){
    int shmid = shm.CreateShm();

    void *addr = shm.AttachShm(shmid);

    shm.DetachShm(addr);

    shm.DeleteShm(shmid);
    return 0;
}






// int main(){

//     /* 1. Create shared memory (shm) */

//     std::cout << "k: " << toHex(k) << std::endl;

//     /* 2. attach shm */ 


//     //  Communication!!!


//     sleep(10);
//     /* 3. detach shm */
//     sleep(5);

//     /* 4. Delete shm */

    
//     return 0;
// }


